/************************************************************************/
/* Name : Kiwon Yun
/* Partner's name : Eric Rooney
/* File Name : Common.h
/* The name of assignment : Iteration 2
/************************************************************************/

/************************************************************************/
/* This file contains contents that every file uses.
/************************************************************************/

#ifndef COMMON_H
#define COMMON_H

#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <functional>

#include <assert.h>
#include <math.h>
#include "Singleton.h"

//#define SCORE_TEST_MODE
//#define CAN_SET_MONEY_TEST_MODE

using namespace std;
#pragma warning (disable:4996)

// There are two mode in this program.
// A standard mode means the new game create cards randomly.
// A test mode means the new game create cards by using a specific data file (deck.dat).
enum E_MODE
{
	STANDARD_MODE,
	TEST_MODE
};

static int ConvertCardValueToInteger( string a_value )
{
	if( !a_value.compare("A") )
		return 1;
	else if( !a_value.compare("J") )
		return 11;
	else if( !a_value.compare("Q") )
		return 12;
	else if( !a_value.compare("K") )
		return 13;
	else
		return atoi( a_value.c_str() );
}

#endif
